﻿@{
    ViewBag.Title = "Home Page";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<script type="text/javascript">
    $(function () {
        var xmlPath = "@Url.Content("~/Content/DWC/dwz.frag.xml")";
        var themePath = "@Url.Content("~/Content/DWC/themes")";
        DWZ.init(xmlPath, {
            loginUrl: "~/Content/DWC/login_dialog.html", loginTitle: "登录",	// 弹出登录对话框
            //		loginUrl:"login.html",	// 跳到登录页面
            statusCode: { ok: 200, error: 300, timeout: 301 }, //【可选】
            pageInfo: { pageNum: "pageNum", numPerPage: "numPerPage", orderField: "orderField", orderDirection: "orderDirection" }, //【可选】
            keys: { statusCode: "statusCode", message: "message" }, //【可选】
            debug: false,	// 调试模式 【true|false】
            callback: function () {
                initEnv();
                $("#themeList").theme({ themeBase: themePath }); // themeBase 相对于index页面的主题base路径
            }
        });
        loadTime();
        window.setInterval(loadTime, 1000);
    })

    function loadTime() {
        var myDate = new Date();
        var mytime = myDate.toLocaleString();     //获取当前时间
        $("#wecDiv").text("iCode欢迎您：现在是北京时间:" + mytime);
    }
</script>
<div id="layout">
    <div id="header">
        <div class="headerNav">
            <a class="logo" href="#" style="">iCode网站管理系统</a>
            <ul class="nav">
                <li><font color="white">欢迎您：@ViewBag.UserName</font></li>
                <li><a href="@Url.Action("Login")">退出</a></li>
            </ul>
            <ul class="themeList" id="themeList">
                <li theme="default"><div class="selected">蓝色</div></li>
                <li theme="green"><div>绿色</div></li>
                <!--<li theme="red"><div>红色</div></li>-->
                <li theme="purple"><div>紫色</div></li>
                <li theme="silver"><div>银色</div></li>
                <li theme="azure"><div>天蓝</div></li>
            </ul>
        </div>
        <!-- navMenu -->

    </div>

    <div id="leftside">
        <div id="sidebar_s">
            <div class="collapse">
                <div class="toggleCollapse"><div></div></div>
            </div>
        </div>
        <div id="sidebar">
            <div class="toggleCollapse"><h2>主菜单</h2><div>收缩</div></div>
            <div class="accordion" fillspace="sidebar">
                <div class="accordionHeader">
                    <h2><span>Folder</span>用户管理</h2>
                </div>
                <div class="accordionContent">
                    <ul class="tree treeFolder">
                        <li><a href="@Url.Action("UserList","UserManage")" target="navTab" rel="userListPage">用户列表</a></li>
                    </ul>
                </div>
                <div class="accordionHeader">
                    <h2><span>Folder</span>DWZ文档</h2>
                </div>
                <div class="accordionContent">
                    <ul class="tree treeFolder">
                        <li><a href="http://j-ui.com/" target="navTab" rel="main">DWZ框架主页</a></li>
                    </ul>
                </div>
            </div>
        </div>
    </div>

    <div id="container">
        <div id="navTab" class="tabsPage">
            <div class="tabsPageHeader">
                <div class="tabsPageHeaderContent">
                    <!-- 显示左右控制时添加 class="tabsPageHeaderMargin" -->
                    <ul class="navTab-tab">
                        <li tabid="main" class="main"><a href="javascript:;"><span><span class="home_icon">我的主页</span></span></a></li>
                    </ul>
                </div>
                <div class="tabsLeft">left</div><!-- 禁用只需要添加一个样式 class="tabsLeft tabsLeftDisabled" -->
                <div class="tabsRight">right</div><!-- 禁用只需要添加一个样式 class="tabsRight tabsRightDisabled" -->
                <div class="tabsMore">more</div>
            </div>
            <ul class="tabsMoreList">
                <li><a href="javascript:;">我的主页</a></li>
            </ul>
            <div class="navTab-panel tabsPageContent layoutBox">
                <div class="page unitBox">
                    <div layouth="80" style="margin-right:230px" id="wecDiv">
                        
                    </div>
                    <div style="width:230px;position: absolute;top:60px;right:0" layouth="80">
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<div id="footer">Copyright &copy; 2014 iCode网站管理系统</div>
